<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <title></title>
    <style>
        *{
            margin:0;
            padding:0;
            box-sizing: border-box;
            
        }
        .box{width:4608px;height:1152px;
            position: relative;}
        img{width: 100%;height: 100%;display: block;}
        .text{
            position: absolute;
            left:4rem;
            top:4rem;
            font-size:0.3rem;
            color:yellow;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="1.jpg" alt=""/>
    </div>

</body>
<script>
    function page_init(prem,pwidth){
        var html = document.getElementsByTagName("html")[0];
        var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
        html.style.fontSize = oWidth/pwidth*prem + "px";
        //console.log("html-fontSize-----"+oWidth/pwidth*prem + "px"+str);
        return oWidth/pwidth*prem;

    }
//    window.onload = function() {
//        page_init(100,1280);
//    }
//    window.onresize = function(){
//        page_init(100,1280);
//    };
</script>
</html>